
<div id="menu-left">
    <div id="wrapper">
        <span class="menu-title">DANH MỤC SẢN PHẨM</span>
        <ul class="menu">
            <?php foreach ($shopCategory as $item) { ?>
            <?php foreach ($item['shopCat'] as $item2): ?>
            <li class="">
            <a href="" class='phutung'>
                <?php if ($item2['catId']==8 || $item2['catId']==16 ||$item2['catId']==24 ||$item2['catId']==32 || $item2['catId']==49): ?>
                    <?php echo $item2['category_name']; ?> ( <?php echo $item['rootName']; ?> )
                <?php else: ?>
                <?php echo $item2['category_name']; ?>
                
                <?php endif ?>
            </a>
                <ul class="menu-child" style="display: none">
                        <li class="subitem1" id="submenu">
                            <a href="/gian-hang/<?php echo $shop['Shop']['short_url']; ?>/<?php echo $item2['short_link']; ?>/san-pham-dang-cung-cap" class="active">
                            Sản phẩm đang cung cấp
                            </a>
                        </li> 
                        <li class="subitem1"id="submenu">
                            <a href="/gian-hang/<?php echo $shop['Shop']['short_url']; ?>/<?php echo $item2['short_link']; ?>/san-pham-trong-kho" class="active">
                            Sản phẩm trong kho - bãi
                            </a>
                        </li>        
                </ul>
            </li>
            <?php endforeach ?>    
            <?php } ?>
        </ul>
    </div>

    <?php if (!empty($shopLocation)): ?>
    <div id="wrapper">
        <span class="menu-title menu-online">HỖ TRỢ ONLINE</span>
        <div class="menu-border">
            <?php foreach ($shopLocation as $item): ?>
                <div class="menu-content">
                <div class="regions"><?php echo $item['ShopLocation']['location']; ?>
                </div><span class="blue-bold">Hotline:</span><span class="phone"> <?php echo $item['ShopLocation']['phone']; ?></span>
                <div><span class="blue-normal">Tên:</span> <?php echo $item['ShopLocation']['name']; ?>
                <div><span class="blue-normal">Email:</span> <?php echo $item['ShopLocation']['email']; ?>
                </div>
                <?php if (!empty($item['ShopLocation']['fax'])): ?>
                <span class="blue-bold">Fax:</span> <?php echo $item['ShopLocation']['fax']; ?>
                <?php endif ?>
                </div>
                <?php if (!empty($item['ShopLocation']['facebook'])): ?>
                <div><span class="red-normal">Facebook: <a href="<?php echo $item['ShopLocation']['facebook']; ?>" target="_blank"><?php echo $item['ShopLocation']['facebook']; ?></a></span>
                </div>
                <?php endif ?>
                </div>
            <?php endforeach ?>
        </div>
    </div>
    <?php endif ?>
</div>